package org.southyin.ioc.test02;

import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class Warrior {
    private String name;
    private Weapon weapon;
    private Weapon[] weapons1;
    private List<Weapon> weapons2;
    private Set<Weapon> weapons3;
    private Map<String, String> grade;

    @Override
    public String toString() {
        return "Warrior{" +
                "name='" + name + '\'' +
                ", weapon=" + weapon +
                ", weapons1=" + Arrays.toString(weapons1) +
                ", weapons2=" + weapons2 +
                ", weapons3=" + weapons3 +
                ", grade=" + grade +
                '}';
    }

    public Weapon[] getWeapons1() {
        return weapons1;
    }

    public void setWeapons1(Weapon[] weapons1) {
        this.weapons1 = weapons1;
    }

    public List<Weapon> getWeapons2() {
        return weapons2;
    }

    public void setWeapons2(List<Weapon> weapons2) {
        this.weapons2 = weapons2;
    }

    public Set<Weapon> getWeapons3() {
        return weapons3;
    }

    public void setWeapons3(Set<Weapon> weapons3) {
        this.weapons3 = weapons3;
    }

    public Map<String, String> getGrade() {
        return grade;
    }

    public void setGrade(Map<String, String> grade) {
        this.grade = grade;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Weapon getWeapon() {
        return weapon;
    }

    public void setWeapon(Weapon weapon) {
        this.weapon = weapon;
    }
}
